namespace System.Web.Core
{
    public class FieldMapping
    {
        private string propertyName = null;
        private string fieldName = null;
        private string fieldDBType = null;
        private string fieldDBTypeEnum = null;
        private int fieldSize = 0;

        public string PropertyName
        {
            get
            {
                return propertyName;
            }
            set
            {
                propertyName = value;
            }
        }
        public string FieldName
        {
            get
            {
                return fieldName;
            }
            set
            {
                fieldName = value;
            }
        }
        public string FieldDBType
        {
            get
            {
                return fieldDBType;
            }
            set
            {
                fieldDBType = value;
            }
        }
        public string FieldDBTypeEnum
        {
            get
            {
                return fieldDBTypeEnum;
            }
            set
            {
                fieldDBTypeEnum = value;
            }
        }
        public int FieldSize
        {
            get
            {
                return fieldSize;
            }
            set
            {
                fieldSize = value;
            }
        }

        public FieldMapping(string propertyName, string fieldName, string fieldDBType, string fieldDBTypeEnum, int fieldSize)
        {
            this.propertyName = propertyName;
            this.fieldName = fieldName;
            this.fieldDBType = fieldDBType;
            this.fieldDBTypeEnum = fieldDBTypeEnum;
            this.fieldSize = fieldSize;
        }
    }
}
